#pragma once

#include <stdlib.h>
#include <string.h>

#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"

#define MAX_STR_LEN 512
#define QUEUE_LEN 8

void queue_init(void);

bool queue_tx_pop(char *out, size_t max_len);
void queue_tx_push(const char *str);
bool queue_rx_pop(char *out, size_t max_len);
void queue_rx_push(const char *str);